<%@ page language="java"  pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<title><%=common.dict.WebsiteDict.TITLE %></title>
<link rel="shortcut icon" href="<%=request.getContextPath() %>/favicon.ico"  type="image/x-icon"/>
<link href="<%=request.getContextPath() %>/css/global.css" type="text/css" rel="stylesheet"/>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/jquery.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/global.js"></script>
<script type="text/javascript" >
$(function(){
	$("#err").text($("#msg").text());
})

function enter(evt){
	if(evt.keyCode==13 || evt.keyCode==42)
	{
		document.getElementById("sbtn").click();
	};
}

function change(obj)
{
	$("#"+obj).attr("src","code.html?height=23&time="+Math.random());
};
</script>


<body style="background-color: #1c3e57;background: url('image/bg.jpg') no-repeat;background-size: 100%">
<div style="position:absolute; padding:25px;top:150px;left:200px; width:360px; border: 1px solid #ccc;opacity: 0.7;background-color: black">
<form action="<%=request.getContextPath()%>/rof_login.html" method="post">
<table border="0" style="width: 100%;">
	<tr>
		<td height="50" >
			<label style="color: #fff;font-size: 50px;">LOGIN</label>
		</td>
	</tr>
	<tr>
		<td height="50" >
			<hr/>
		</td>
	</tr>
	<tr>
		<td height="50" >
			<input type="text" placeholder="操作员工号" name="optId"  id="optId" style="width:200px;height: 30px;" value="" />
		</td>
	</tr>
	
	<tr>
		<td height="50" >
			<input type="password" placeholder="登录密码" name="optPwd" id="optPwd" style="width:200px;height: 30px;" value=""/>
		</td>
	</tr>
	
	<tr>
		<td height="50" >
			<table border="0" >
				<tr>
					<td><input type="text"  placeholder="验证码" id="code"  name="code"  style="width: 120px;height: 30px;" onkeypress="enter(event);"/></td>
					<td><a href="javascript:change('codeImage')"><img id="codeImage" src="<%=request.getContextPath() %>/code.html?height=29"/></a></td>
				</tr>
			</table>
		</td>
	</tr>
	
	
	<tr>
		<td height="25" >
			<label id="err"  style="color: #fff;">&nbsp;</label><div id="msg"  style="display: none;"><s:actionerror /></div>
		</td>
	</tr>
	
	<tr>
		<td height="50" >
			<input type="submit"  id="sbtn" class="submit" value="登录" />
		</td>
	</tr>
</table>
</form>

</div>
</body>